extends "../calxsx/calxsx.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "滴滴"                   # 角色的名称
	attCoe.atkRan = 2                 # 攻击距离
	attCoe.maxHp = 6                 # 最大生命（每点代表112.5基础数值，取整数，下同）
	attCoe.atk = 4.5                    # 攻击力（每点代表8.5）
	attCoe.mgiAtk = 4.5                 # 魔法攻击（每点代表13.7）
	attCoe.def = 4.5                    # 物理防御（每点代表15）
	attCoe.mgiDef = 4.5                 # 魔法防御（每点代表16.6）
	atkEff = "atk_dang" 
	xb = "水"
	lv = 2    
	addSkillTxt("[魔高一丈]将魔力凝聚到自己身上，提升自身魔攻10%，最高提升至60%[CD:10]")
	addCdSkill("yizhang",10)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "yizhang":
		var eff = sys.newEff("numHit", position, false, 1)
		eff.setText("魔高一丈", "#FF0099")
		eff.anim.set_speed_scale(0.2)
		var buff = hasBuff("mogong1")
		if buff == null:
			addBuff(bf.mogong1.new())
		elif buff.att.mgiAtkL < 0.6:
			buff.att.mgiAtkL += 0.1
